﻿#region 信息

// Copyright©2014 Rex Rao all rights reserved.
// File name : Mojito\Mojito.Data\ShopConfiguration.cs
// Author : Sohobloo
// Create time : 2014/07/09 12:47
// Update time : 2014/08/19 11:22

#endregion

using System;
using System.Linq;

namespace Mojito.Data.Configuration
{
    internal sealed partial class ShopConfiguration
    {
        protected override void ConfigurateExtension()
        {
            Property(s => s.ShopName).HasMaxLength(50);
            Property(s => s.TimeZone).IsRequired().HasMaxLength(32);
            HasRequired(s => s.DefaultAccount).WithMany().HasForeignKey(s => s.DefaultAccountId);
        }
    }
}